import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class TestCard {

    public static void main(String[] args) {
        ArrayList<Integer> list=new ArrayList<>();
        list.add(10);
        list.add(23);
        list.add(3);
        list.add(9);

        Collections.sort(list);
        System.out.println(list);
    }
    public static void main1(String[] args) {
        Cards cards=new Cards();
        List<Card> cardlist= cards.buyCard();

        cards.shuffle(cardlist);
        System.out.println("洗牌之后：");
        System.out.println(cardlist);

        System.out.println("抓牌：");
        cards.drawCard(cardlist);

        System.out.println("剩下的牌");
        System.out.println(cardlist);

    }
}
